package com.sgam.mf.dao.sys;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sgam.mf.dao.GenericDAOImpl;
import com.sgam.mf.domain.sys.SysMainMenu;

@Repository
public class SysMainMenuDAOImpl extends GenericDAOImpl<SysMainMenu> implements SysMainMenuDAO {

	@SuppressWarnings("unchecked")
	public List<SysMainMenu> listTree(){
		
		List<SysMainMenu>  result = getCurrentSession().createQuery("from SysMainMenu where PARENT_ID = 0 ORDER BY VISUAL_ORDER").list();
		
		return  result;
	}
}

	
